package com.library.workbench.service;

import com.library.workbench.pojo.Book;
import com.library.workbench.pojo.Borrow;

import java.util.List;
import java.util.Map;

public interface BorrowService {
    List<Borrow> queryBorrowByUserId(String userId);

    List<Book> queryExistBookForConditionForPage(Map<String,Object> map);

    int queryExistBookByConditionForRows(Map<String,Object> map);

    int saveBorrow(Borrow borrow);

    List<Borrow> queryBorrowInfoByUserIdAndNotReturn(String userId);

    int saveReturnBorrowInfo(Borrow borrow);

    Borrow queryBorrowById(String borrowId);

    List<Borrow> queryBorrowInfoByConditionForPage(Map<String,Object> map);

    int queryBorrowInfoByConditionForRows(Map<String,Object> map);

    List<Borrow> queryNeedReturnBorrowByConditionForPage(Map<String,Object> map);

    int queryNeedReturnBorrowByConditionForRows(Map<String,Object> map);
}
